
import ItemMoudle from "@/components/common/ItemModule"
import TableIndex from "@/components/common/TableIndex"
import TitleMain from "@/components/common/TitleMain"
import type { ColumnsType } from "antd/es/table"

interface DataType {
  month: string
  count: number
  num: number
  a: number
  b: number
  key: string
}

const columns: ColumnsType<DataType> = [

  {
    title: '',
    dataIndex: 'month',

  },
  {
    title: '整改总数',
    dataIndex: 'count',
  },
  {
    title: '责令改正',
    dataIndex: 'num',
  },
  {
    title: '通报',
    dataIndex: 'a',
  },
  {
    title: '下架',
    dataIndex: 'b',
  },
];

const dataSource: DataType[] = [];
for (let i = 1; i < 7; i++) {
  dataSource.push({
    key: `${i}`,
    month: `${i}月`,
    count: 16,
    num: 13,
    a: 13,
    b: 2
  });
}

const RectificationSituation = () => {
  return <ItemMoudle
    className="w-[384px]"
    childClassName="h-[348px] flex items-center justify-between"
    header={
      <TitleMain title="APP整改情况" />
    }
  >

    <TableIndex<DataType>
      columns={columns}
      data={dataSource}
      scroll={{ y: 300, x: 360 }}
    />


  </ItemMoudle>
}

export default RectificationSituation